﻿using FwProject.Comm.ExcelUtil;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using X.PagedList;

namespace FwProject.PrePaymentInfo.Dto
{
    [DisplayName(displayName: "每日收支汇总")]
    public class DailyIncomeAndExpensesDto
    {
        /// <summary>
        /// 日期
        /// </summary>
        [DisplayName(displayName: "日期")]
        [ExcelDateMember]
        public DateTime Date { get; set; }
        /// <summary>
        /// 本日收入
        /// </summary>
        [DisplayName(displayName: "本日收入")]
        [ExcelDateMember(IsSum = true)]
        public decimal Income { get; set; }
        /// <summary>
        /// 本日支出
        /// </summary>
        [DisplayName(displayName: "本日支出")]
        [ExcelDateMember(IsSum = true)]
        public decimal Expenses { get; set; }
        /// <summary>
        /// 收支差额
        /// </summary>
        [DisplayName(displayName: "收支差额")]
        [ExcelDateMember(IsSum = true)]
        public decimal Difference { get; set; }

    }


    public class SummaryDailyIncomeAndExpensesDto
    {
        /// <summary>
        /// 本日收入合计
        /// </summary>
        public decimal SumIncome { get; set; }

        /// <summary>
        /// 本日支出合计
        /// </summary>
        public decimal SumExpenses { get; set; }

        /// <summary>
        /// 收支差额合计
        /// </summary>
        public decimal SumDifference { get; set; }

        public IPagedList<DailyIncomeAndExpensesDto> pagelist { get; set; }


    }
}
